<?php
set_time_limit(9999999999999999999999);
$con = mysqli_connect("127.0.0.1","root","","funda_site_2");

$sql = "SELECT woid FROM wo";



$result = mysqli_query($con,$sql);

$i = 1;
while($row = mysqli_fetch_array($result))
{
    $sql="UPDATE wo SET temp=".$i." WHERE woid='".$row['woid']."'";
    mysqli_query($con,$sql);
    echo mysqli_error($con);
    $i++;
}

  
?>
